//React需要保证渲染组件的纯粹性
const Cup = ({guest } :  {guest: number}) => {
  return <h2> Tea cup for  guest #{guest}</h2>;
}

export default function TeaSet() {
	let cups = [];
	for (let i = 1; i <= 10; i++) {
		cups.push(<Cup guest={i} key={i}/>);
	}
  return cups;
}